﻿:root {
    --ins-bg: #f3f4f6;
    --ins-bg-dark: #020617;
    --ins-surface: #ffffff;
    --ins-surface-dark: #020617;
    --ins-primary: #0f172a;
    --ins-accent: #1e40af;
    --ins-gold: #fbbf24;
    --ins-text-muted: #6b7280;
}

body {
    background: var(--ins-bg);
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    color: #111827;
    transition: background .3s ease, color .3s ease;
}

    body.dark {
        background: #020617;
        color: #e5e7eb;
    }

.ins-max-1120 {
    max-width: 1120px;
}

/* HEADER */
.ins-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
    background: rgba(243,244,246,.90);
    border-bottom: 1px solid rgba(148,163,184,.35);
}

body.dark .ins-header {
    background: rgba(15,23,42,.92);
    border-color: rgba(30,64,175,.5);
}

.ins-header-inner {
    max-width: 1120px;
    margin: auto;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ins-header-nav a {
    font-size: 14px;
    margin-left: 18px;
    text-decoration: none;
    color: var(--ins-text-muted);
}

    .ins-header-nav a:hover {
        color: var(--ins-primary);
    }

    .ins-header-nav a.active {
        color: var(--ins-primary);
        font-weight: 800;
    }

body.dark .ins-header-nav a {
    color: #9ca3af;
}

    body.dark .ins-header-nav a:hover {
        color: #e5e7eb;
    }

    body.dark .ins-header-nav a.active {
        color: #e5e7eb;
    }

/* ===== MOBILE MENU (unico gruppo) ===== */
.ins-noscroll {
    overflow: hidden;
}

/* Burger */
.ins-burger {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 14px;
    background: rgba(15,23,42,.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .12s ease, background .12s ease;
}

    .ins-burger:active {
        transform: scale(.98);
    }

body.dark .ins-burger {
    background: rgba(255,255,255,.08);
}

.ins-burger-lines {
    width: 20px;
    height: 14px;
    position: relative;
    display: inline-block;
}

    .ins-burger-lines::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 1px;
        height: 2px;
        border-radius: 2px;
        background: rgba(15,23,42,.70);
        box-shadow: 0 5px 0 rgba(15,23,42,.70), 0 10px 0 rgba(15,23,42,.70);
    }

body.dark .ins-burger-lines::before {
    background: rgba(229,231,235,.85);
    box-shadow: 0 5px 0 rgba(229,231,235,.85), 0 10px 0 rgba(229,231,235,.85);
}

/* Overlay */
.ins-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,.55);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity .18s ease;
    z-index: 9998;
}

    .ins-menu-overlay.open {
        opacity: 1;
    }

/* Drawer */
.ins-mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(360px, 90vw);
    background: var(--ins-surface);
    border-left: 1px solid rgba(148,163,184,.35);
    box-shadow: -20px 0 60px rgba(0,0,0,.20);
    transform: translateX(102%);
    transition: transform .18s ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    padding: 14px;
}

    .ins-mobile-drawer.open {
        transform: translateX(0);
    }

body.dark .ins-mobile-drawer {
    background: rgba(15,23,42,.98);
    border-left-color: rgba(51,65,85,.75);
    box-shadow: -20px 0 70px rgba(0,0,0,.45);
}

.ins-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 6px 12px 6px;
    border-bottom: 1px solid rgba(148,163,184,.35);
}

body.dark .ins-drawer-head {
    border-bottom-color: rgba(51,65,85,.75);
}

.ins-drawer-title {
    font-weight: 900;
    font-size: 16px;
    letter-spacing: -.01em;
    color: var(--ins-primary);
}

body.dark .ins-drawer-title {
    color: #e5e7eb;
}

.ins-drawer-sub {
    display: block;
    font-size: 12px;
    color: var(--ins-text-muted);
    margin-top: 2px;
}

body.dark .ins-drawer-sub {
    color: #9ca3af;
}

.ins-drawer-close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: rgba(15,23,42,.06);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: var(--ins-primary);
}

body.dark .ins-drawer-close {
    background: rgba(255,255,255,.08);
    color: #e5e7eb;
}

.ins-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 6px;
}

    .ins-drawer-nav a {
        text-decoration: none;
        color: var(--ins-primary);
        font-weight: 800;
        padding: 12px 12px;
        border-radius: 14px;
        background: rgba(15,23,42,.04);
        border: 1px solid rgba(148,163,184,.25);
        transition: transform .12s ease, background .12s ease, border-color .12s ease;
    }

        .ins-drawer-nav a:hover {
            background: rgba(30,64,175,.10);
            border-color: rgba(30,64,175,.35);
            transform: translateX(-2px);
        }

        .ins-drawer-nav a.active {
            background: rgba(30,64,175,.14);
            border-color: rgba(30,64,175,.45);
        }

body.dark .ins-drawer-nav a {
    color: #e5e7eb;
    background: rgba(255,255,255,.06);
    border-color: rgba(51,65,85,.75);
}

    body.dark .ins-drawer-nav a:hover {
        background: rgba(20,184,166,.12);
        border-color: rgba(20,184,166,.35);
    }

.ins-drawer-footer {
    margin-top: auto;
    padding: 12px 6px 6px 6px;
    border-top: 1px solid rgba(148,163,184,.35);
}

body.dark .ins-drawer-footer {
    border-top-color: rgba(51,65,85,.75);
}

.ins-drawer-cta {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 16px;
    font-weight: 900;
    color: #fff;
    background: var(--ins-accent);
}

    .ins-drawer-cta:hover {
        opacity: .95;
    }

/* HERO TEAM */
.team-hero {
    padding: 70px 16px 30px;
    max-width: 1120px;
    margin: 0 auto;
}

    .team-hero .kicker {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 4px 12px;
        border-radius: 999px;
        background: rgba(15,23,42,.06);
        border: 1px solid rgba(148,163,184,.45);
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .15em;
        color: var(--ins-primary);
    }

body.dark .team-hero .kicker {
    background: rgba(255,255,255,.06);
    border-color: rgba(51,65,85,.85);
    color: #e5e7eb;
}

.team-hero h1 {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -.02em;
    margin-top: 14px;
    margin-bottom: 10px;
}

.team-hero p {
    color: var(--ins-text-muted);
    max-width: 820px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.55;
}

body.dark .team-hero p {
    color: #9ca3af;
}

/* TEAM CARD */
.team-card {
    background: var(--ins-surface);
    border-radius: 18px;
    border: 1px solid rgba(148,163,184,.35);
    box-shadow: 0 16px 45px rgba(15,23,42,.08);
    height: 100%;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    overflow: hidden;
}

    /* Hover card team: bordino blu, non verde */
    .team-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 24px 60px rgba(15,23,42,.14);
        border-color: rgba(30,64,175,.35);
    }

body.dark .team-card {
    background: var(--ins-surface-dark);
    border-color: rgba(31,41,55,.90);
    box-shadow: 0 18px 55px rgba(0,0,0,.35);
}

/* Bordo foto profilo */
.team-photo {
    width: 108px;
    height: 108px;
    border-radius: 999px;
    object-fit: cover;
    border: 3px solid rgba(30,64,175,.22);
    box-shadow: 0 12px 26px rgba(0,0,0,.10);
}

body.dark .team-photo {
    border-color: rgba(30,64,175,.28);
}


.team-role {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ins-text-muted);
}

body.dark .team-role {
    color: #9ca3af;
}

/* Badge "soft" (Executive MBA, PMI & Packaging, ecc.) */
.badge-soft {
    background: rgba(30,64,175,.10);
    border: 1px solid rgba(30,64,175,.25);
    color: #1e3a8a;
}

body.dark .badge-soft {
    background: rgba(30,64,175,.18);
    border-color: rgba(30,64,175,.35);
    color: #bfdbfe;
}


.text-muted-ins {
    color: var(--ins-text-muted) !important;
}

body.dark .text-muted-ins {
    color: #9ca3af !important;
}

.team-plus {
    font-size: 44px;
    opacity: .18;
    color: var(--ins-primary);
    margin-bottom: 6px;
}

body.dark .team-plus {
    color: #e5e7eb;
    opacity: .18;
}

/* CTA */
.team-cta {
    max-width: 1120px;
    margin: 18px auto 60px;
    padding: 0 16px;
}

.team-cta-box {
    background: linear-gradient(120deg, #0f172a, #020617 55%, #083344);
    color: #fff;
    border-radius: 20px;
    padding: 26px 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 22px 60px rgba(15,23,42,.16);
}

.team-cta-title {
    font-weight: 900;
}

.team-cta-sub {
    margin: 0;
    color: #cbd5f5;
}

.btn-accent {
    background: var(--ins-accent);
    border: none;
    color: #062a2a;
    font-weight: 800;
    border-radius: 14px;
    padding: 12px 16px;
}

    .btn-accent:hover {
        opacity: .95;
    }

.btn-outline-light2 {
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
    border-radius: 14px;
    padding: 12px 16px;
    font-weight: 700;
    background: transparent;
}

    .btn-outline-light2:hover {
        background: rgba(255,255,255,.06);
    }

@media (max-width:768px) {
    .team-hero h1 {
        font-size: 34px;
    }
}
/* container già usato da te */
.ins-max-1120 {
    max-width: 1120px;
}

/* blocco testo: centrato come “colonna”, ma testo a sinistra */
.about-copy {
    max-width: 900px; /* regola qui la “larghezza lettura” come nello screenshot */
    margin: 0 auto 34px auto; /* centra il blocco e crea spazio sotto */
    text-align: left; /* IMPORTANTISSIMO: non centrato */
}

/* distanza tra testo e cards, coerente */
.about-cards-row {
    margin-top: 6px;
}

/* (facoltativo) se vuoi cards più “compatte” come nello screenshot */
@media (min-width: 992px) {
    .about-cards-row .col-lg-4 {
        max-width: 360px;
    }
}
